<% if @pages and not @pages.empty? %>
  <%=render :partial => 'page'%>
  <%=render :partial => 'common/pagemenu'%>  
  <%=render :partial => 'common/pagenav'%> 
  <%=render :partial => 'note' unless app_config[:no_notes]%>  
<% else %>
  <%=render :partial => 'empty'%>
  <%=render :partial => 'common/pagemenu'%>  
<% end %>

  
    <% content_for('sidebar') do -%>

      <% if @friend %>
        <%group= { :id => 'friend',
                    :tog_close_target => 'imgup', :tog_url_controller => 'mind/friends', :tog_url_action => 'list', :tog_url_id => (params[:page]||1),
                    :tog_complete_js => "new Effect.Highlight('friendul', {duration:'1.0', endcolor:'28ff2d'})",
                    :list_partial => 'common/familyfriend',
                    :list => [@friend],
                    :help_text => _('I Am Looking At.'),
                    :drop_url_action => 'friendadd',
                    :drop_accept => 'friendrop' }%>
        <%=render :partial => 'common/group', :locals => {:group => group}%>
      <% end -%>

    <% end %>

    <% content_for('wunderbox') do -%>
      <% if !logged_in?%>
        <%=friend_icon @page.friend%>
      <% end %>
    <% end %>